Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port polish items from old HITL study branch #1671

Conversation

rpartsey
Copy link
Collaborator

@rpartsey rpartsey commented Nov 4, 2023

Motivation and Context

Port polish items from old HITL study branch. See this Asana task (and comments) for more context.

How Has This Been Tested

Running sandbox app locally on MacBook Pro 2021.

Assets and habitat-sim setup the same as in this SIRo Sandbox snapshot.

Launch command (--show-tutorial flag added):

"program": "examples/siro_sandbox/sandbox_app.py",
"args": [
    "--app-state", "socialnav_study",
    "--display-font-size", "14",
    "--disable-inverse-kinematics",
    "--never-end",
    "--first-person-mode",
    "--hide-humanoid-in-gui",
    "--width", "1300",
    "--height", "1000",
    "--gui-controlled-agent-index", "1",
    "--ang-speed", "300",
    "--save-episode-record",
    "--save-filepath-base", "my_session",
    "--show-tutorial",
    "--cfg", "examples/siro_sandbox/configs/socialnav_study.yaml",
    "--cfg-opts",
    "~habitat.task.measurements.agent_blame_measure",
    "habitat.dataset.data_path=data/datasets/floorplanner/rearrange/scratch/test/largetest_10s_500epi_2obj.json.gz",
    "habitat.simulator.agents.agent_1.articulated_agent_urdf='data/humanoids/humanoid_data/female_3/female_3.urdf'"
],

Note, this is not tested with rearrange app state, since it is not working on demo branch.

Types of changes

  • Development PR into eundersander/SIRo_hitl_Sep5_demo_refactored (demo branch).
  • My code follows the code style of this project.
  • I have updated the documentation if required.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes if required.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Nov 4, 2023
@rpartsey rpartsey force-pushed the rpartsey/SIRo_hitl_Sep5_demo_refactored/study_enhancements branch from a49fecf to f011755 Compare November 4, 2023 17:21
Copy link
Contributor

@eundersander eundersander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good progress! Let's see if we can simplify tutorial command line args, see comment below. Also, is there a plan to address #1 and #3 from the Asana item, perhaps a separate PR?

@@ -710,6 +718,12 @@ def _parse_debug_third_person(args, framebuffer_size):
default=False,
help="Shows an intro sequence that helps familiarize the user to the scene and task in a HITL context.",
)
parser.add_argument(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked @rutadesai on Slack about if we can just make this the only option for the tutorial (and thus we don't need to complicate the code with multiple tutorial-related command-line args).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

if end_pos[1] != rigid_state.translation[1]:

# try_step may fail, in which case it simply returns the start argument
did_try_step_fail = end_pos == rigid_state.translation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is fine. But going forward, let's keep our PRs into the HITL codebase separate from our PRs into Habitat-lab/baselines.

@rpartsey
Copy link
Collaborator Author

rpartsey commented Nov 7, 2023

Good progress! Let's see if we can simplify tutorial command line args, see comment below. Also, is there a plan to address #1 and #3 from the Asana item, perhaps a separate PR?

@eundersander these items are already addressed. See my Asana task comment.

@rpartsey rpartsey force-pushed the rpartsey/SIRo_hitl_Sep5_demo_refactored/study_enhancements branch from f011755 to a901471 Compare November 7, 2023 13:44
@rpartsey rpartsey force-pushed the rpartsey/SIRo_hitl_Sep5_demo_refactored/study_enhancements branch from 1fa1526 to b893fc9 Compare November 9, 2023 09:04
Copy link
Contributor

@eundersander eundersander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rpartsey rpartsey merged commit 511df01 into eundersander/SIRo_hitl_Sep5_demo_refactored Nov 9, 2023
3 of 4 checks passed
@rpartsey rpartsey deleted the rpartsey/SIRo_hitl_Sep5_demo_refactored/study_enhancements branch November 9, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants